package com.whxd.framework.common.dto;

import java.io.Serializable;

/**
 * Ajax 请求状态返回对象模型
 * 
 * @author 张世鹏
 */
public class ReturnObject implements Serializable {

	private boolean success = false;

	private String msg = "";

	private Object obj = null;

	public ReturnObject() {
		super();
	}

	public ReturnObject(boolean success, String msg) {
		super();
		this.success = success;
		this.msg = msg;
	}

	public ReturnObject(boolean success, String msg, Object obj) {
		super();
		this.success = success;
		this.msg = msg;
		this.obj = obj;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}
}
